﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;

public partial class XemDMNhaCC : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            System.Web.Services.Protocols.SoapHttpClientProtocol proxy = (System.Web.Services.Protocols.SoapHttpClientProtocol)WSProxy.CreateWebService(WebServices_Param.WsNCCURL, WebServices_Param.WsNCCName);
            object kq = WSProxy.CallWebService(proxy, "layHetDMSanPham", new object[] { });
            List<TheLoai> theLoais = WebServiceInvoker.ConvertType<List<TheLoai>>(kq);

            DetailsView1.DataSource = theLoais;
            DetailsView1.DataBind();
        }
        catch { }
    }
}